package ExamSystemClient.managerSystem.ExamManagement;

import ExamSystemClient.model.ChoiceQuestion;

import java.util.List;

/**
 * 遍历打印所有考题
 *
 * @author Shuxian Huang
 */
public class PrintQuesionts extends QuestionManage {

    public PrintQuesionts(List<ChoiceQuestion> questions) {
        super(questions);
    }

    @Override
    public void operate() {
        for (ChoiceQuestion question : questions) {
            System.out.println(question);
        }
    }

    @Override
    public QuestionManage show() {
        System.out.println("打印所有考题！");
        return this;
    }
}
